home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Oct 90 / MacApp.Tech$ 10⁄12⁄90 / 2166-Re ?UMenu for Popups-Oct90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item    2641589                         11-Oct-90        11:51PDT
  2.  
  3. From:   BAJAJ.A                         Bajaj, Anil
  4.  
  5. To:     AU0008                          Austria - Kopfwerk,IDV
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.         ROSENSTEIN1                     Rosenstein, Larry
  9.         KNEPPER                         Knepper, Christopher
  10.  
  11. Sub:    Re: ?UMenu for Popups?
  12.  
  13. Tommy,
  14.  
  15. There are some problems using UMenu for popup menus.
  16.  
  17. Since, UMenu descends from a TView, and has a Focus method that creates a new
  18. port (by calling InitPort/InitCPort) instead of using the existing wMgrPort,
  19. the new port is restricted to the main screen and as a result the menu pops up
  20. only on the main screen.
  21.  
  22. Moreover, there may be a bug in UMenu's handling of the mPopUpMsg which ends up
  23. doing a Focus. What happens here is that Focus assumes that the fMenuRect
  24. (which gets set in HandleDefProc) is a valid rect, but during a mPopupMsg, the
  25. menuRect parameter is uninitialized, since the Menu Manager does not send the
  26. menuRect along, fMenuRect gets set to an uninitialized Rect and consequently
  27. the menu ends up popping up at any odd location on the main screen…
  28.  
  29. What we ended up doing was use Larry's original UMenu which does not descend
  30. from a view (called it UCustomMenu), and got around all these problems. Since
  31. our menus don't tearoff this solution worked for us…
  32.  
  33. Hopefully, we could get a new version of UMenu that works for popups and
  34. handles scrolling as well and across multiple screens ( Larry? Chris? ).
  35.  
  36. Hope this helps…
  37.  
  38. Anil Bajaj
  39.  
  40.